package cn.echase.ecare.yinfayun.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.io.Serializable;

/**
 * 机构员工证书表
 *
 * @auther jiangyilong
 * @date 2025-05-12 09:39
 * @description 机构员工证书表
 */
@Data
@TableName(value = "t_staff_certificate")
public class StaffCertificate extends TenantEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 物理主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 逻辑主键(员工证书id)
     */
    @TableField(value = "staff_cer_id")
    private String staffCerId;

    /**
     * 是否删除，0：已删除，1：未删除
     */
    @TableField(value = "delete_flag")
    private Integer deleteFlag;

    /**
     * 证书所属员工id
     */
    @TableField(value = "staff_id")
    private String staffId;

    /**
     * 证书类型，0：资格证书，1：学历证书，2：其他证书
     */
    @TableField(value = "cer_type")
    private Integer cerType;

    /**
     * 证书名称
     */
    @TableField(value = "cer_name")
    private String cerName;

    /**
     * 证书编号
     */
    @TableField(value = "cer_num")
    private String cerNum;

    /**
     * 发证单位
     */
    @TableField(value = "cer_issuance")
    private String cerIssuance;

    /**
     * 发证日期
     */
    @TableField(value = "cer_date")
    private String cerDate;

    /**
     * 证书有效开始日期
     */
    @TableField(value = "cer_start_date")
    private String cerStartDate;

    /**
     * 证书有效结束日期
     */
    @TableField(value = "cer_stop_date")
    private String cerStopDate;

    /**
     * 提醒周期(天)
     */
    @TableField(value = "remind_cycle")
    private Integer remindCycle;

}